import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { RecordMenuService } from './record_menu.service';
import { CreateRecordMenuDto } from './dto/create-record_menu.dto';
import { UpdateRecordMenuDto } from './dto/update-record_menu.dto';

@Controller('record-menu')
export class RecordMenuController {
  constructor(private readonly recordMenuService: RecordMenuService) {}

  @Post()
  create(@Body() createRecordMenuDto: CreateRecordMenuDto) {
    return this.recordMenuService.create(createRecordMenuDto);
  }

  @Get()
  findAll() {
    return this.recordMenuService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.recordMenuService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateRecordMenuDto: UpdateRecordMenuDto) {
    return this.recordMenuService.update(+id, updateRecordMenuDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.recordMenuService.remove(+id);
  }
}
